#ifndef __buzz_h   
    #define __buzz_h
//HAL--------------------
    #define F_buzz()        P2_0 = ~P2_0
	#define F_setBuzz()	    P2_0 =	1   

//Const--------------------
    #define D_buzzLastTime 30  //30*4ms(T0) = last 120ms per Buzz
	//D_buzzConvertAdTime > D_buzzLastTime 
	#define D_buzzConvertAdTime 200 //200*4ms(T0) = reuse Pin convert to Ad mode
																	
    #define D_buzzIntervalTime   250 //250*4ms(T0) = Interval 1s between buzzs
//Var----------------------
    #ifdef __buzz_c
        uint8_t buzzLastTimer ; 
		uint8_t buzzConvertAdTimer ;
        uint8_t buzzCounter ; 
        uint8_t buzzIntervalTimer ;
		bit bBuzz ;		
		
    #else
        extern uint8_t buzzLastTimer ;
		extern uint8_t buzzConvertAdTimer ;
        extern uint8_t buzzCounter ;
        extern uint8_t buzzIntervalTimer ;
		extern bit bBuzz ;
    #endif

//Function----------------------
	void Buzz(void) ;
#endif